
#pragma force_top_level
#pragma include_only_once
#ifndef __math_h
#include <math.h>
#endif

#ifndef __superfplib__
#define __superfplib__


/*
 *   Maths functions for use with -msoft-float:
 */

extern double floor(double) __attribute__ ((const));
extern double sqrt(double) __attribute__ ((const));
extern double pow(double, double) __attribute__ ((const));
extern double exp(double) __attribute__ ((const));
extern double log10(double) __attribute__ ((const));
extern double log(double) __attribute__ ((const));
extern double atan(double) __attribute__ ((const));
extern double cos(double) __attribute__ ((const));
extern double sin(double) __attribute__ ((const));


/*
 *   Other usefull maths functions in superfplib:
 */

extern int eq0sf (float) __attribute__ ((const));
extern int eq0df (double) __attribute__ ((const));
extern float fabss (float) __attribute__ ((const));
extern double fabsd (double) __attribute__ ((const));
extern float sqrts (float) __attribute__ ((const));
extern double m_atof (const char *__string, char **__end);

#undef atof
#define atof(s) m_atof(s, (char **)NULL)

#endif
